package top.frsf.pattern.a_creational.a_singleton;

/**
 * @Author He Kuntao
 * @Date 2024/7/2 14:36
 * @Desc 单例模式 -- 饿汉实现
 **/
public class Singleton1 {

  private static final Singleton1 singleton1 = new Singleton1();

  private Singleton1() {}

  public static Singleton1 getInstance(){
    return singleton1;
  }

}
